package liuwanghui.dto.request;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.util.List;

@Data
public class SaleOrderReviewDTO {
    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分最小为1星")
    @Max(value = 5, message = "评分最大为5星")
    private Integer rating;
    
    @NotBlank(message = "评价内容不能为空")
    private String content;
    
    private List<String> images;
    
    @NotNull(message = "请选择是否匿名评价")
    private Boolean anonymous;
} 